import DayKService from '../service/dayK-service';

class DayKController {
  _service:DayKService = new DayKService()

  hello =  async(ctx: any) => {
    ctx.body = await this._service.hello();
  };
  getPaginDayK = async(ctx: any) => {
    ctx.body = await this._service.getPaginDayK(ctx);
  };
  addDayK = async(ctx: any) => {
    ctx.body = await this._service.addDayK(ctx);
  };
  updateDayK = async(ctx: any) => {
    ctx.body = await this._service.updateDayK(ctx);
  };
  deleteDayK = async(ctx: any) => {
    ctx.body = await this._service.deleteDayK(ctx);
  }
}

export default new DayKController()